import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import HelloKitty from '../components/HelloKitty.vue'  //相对写法
import User from '../components/User.vue'
import Department from '../components/Department.vue'
import MyTable from '../components/MyTable.vue'
import MyButton from '../components/MyButton.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', component: HelloWorld},
    {path: '/k', component: HelloKitty},
    {path: '/user', component: User},
    {path: '/dept', component: Department},
    {path: '/table', component: MyTable},
    {path: '/button', component: MyButton}

  ]
})
